import Vue from 'vue';
import Vuex from 'vuex';
import { loginStore } from './login/index';
import { routeStore } from './route/index';
import { layoutStore } from './layout/index';
import { userStore } from './user/index';
import { roleStore } from './role/index';
import { permissionStore } from './permission';

Vue.use(Vuex)

const store = new Vuex.Store({
    modules:{
        roleStore,
        loginStore,
        routeStore,
        layoutStore,
        userStore,
        permissionStore
    }
});

export default store;